package mongodb;

import java.util.Date;
import org.bson.types.ObjectId;


public class Article {
    private ObjectId id;
    private String title;               //文章标题
    private String author;
    private String user_group;
    private Date create_date;
    private Date last_modify_date;
    private int viewCount;              //浏览次数
    private String content;             //文章本体

    public Article(){

    }

    public Article(final ObjectId id,final String title,final String author,final String user_group,final Date create_date,final Date last_modify_date,final int viewCount,final String content){
        this.id=new ObjectId();
        this.title=title;
        this.author=author;
        this.content=content;
        this.create_date=create_date;
        this.last_modify_date=last_modify_date;
        this.user_group=user_group;
        this.viewCount=viewCount;
    }

    public ObjectId getId() {
        return id;
    }

    public void setId(ObjectId id) {
        this.id = id;
    }



    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getUser_group() {
        return user_group;
    }

    public void setUser_group(String user_group) {
        this.user_group = user_group;
    }

    public Date getCreate_date() {
        return create_date;
    }

    public void setCreate_date(Date create_date) {
        this.create_date = create_date;
    }

    public Date getLast_modify_date() {
        return last_modify_date;
    }

    public void setLast_modify_date(Date last_modify_date) {
        this.last_modify_date = last_modify_date;
    }

    public int getViewCount() {
        return viewCount;
    }

    public void setViewCount(int viewCount) {
        this.viewCount = viewCount;
    }




}
